package com.vq.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

/**
 * <h2>社区类</h2>
 */
@Data
public class Community {
    @TableId(type = IdType.AUTO)
    Long id;
    String account;//创建者名称
    String name;//社区名称
    long numberFollowers;//关注人数

    public Community() {}
    public Community(String account, String name) {
        this.account = account;
        this.name = name;
    }
    public Community(String account, String name, long numberFollowers) {
        this.account = account;
        this.name = name;
        this.numberFollowers = numberFollowers;
    }
}
